using System;
using System.Collections.Generic;
using System.Text;

namespace raycaster
{
  public static class Calc
  {
    public const float Epsilon = 0.000001f;

    public static bool AlmostEqual(float a, float b)
    {
      return Math.Abs(a - b) < Epsilon;
    }

    public static bool AlmostZero(float a)
    {
      return AlmostEqual(a, 0);
    }
  }
}
